package com.hopes.bizz.risk.transfer.converter.expression;

import org.mapstruct.Named;

/**
 * @author lyb
 * @version 1.0
 * @date 2024/2/18 13:48
 */
public class RiskMeasuresTaskExp {

    @Named("checkCycleType")
    public static String checkCycleType(String checkCycleUnit) {
        if ("小时".equals(checkCycleUnit)) {
            return "1";
        } else if ("天".equals(checkCycleUnit)) {
            return "2";
        } else if ("月".equals(checkCycleUnit)) {
            return "3";
        } else if ("年".equals(checkCycleUnit)) {
            return "4";
        }
        return null;
    }
}
